package com.duanjw.springframework.ioc.lifecycle.dao.impl;

import com.duanjw.springframework.ioc.lifecycle.dao.UserDao;

/**
 * @author duanjw
 */
public class UserDaoImpl3 implements UserDao {
    public UserDaoImpl3(){
        System.out.println("UserDaoImpl3空参构造初始化，hashCode：" + this.hashCode());
    }

    /**
     * bean初始化后执行的方法
     */
    public void init(){
        System.out.println("UserDaoImpl3的init方法，hashCode：" + this.hashCode());
    }

    /**
     * bean销毁前执行的方法
     */
    public void destroy(){
        System.out.println("UserDaoImpl3的destroy方法，hashCode：" + this.hashCode());
    }
}
